package com.huaxin.device.dto.enums.validation;

import com.huaxin.device.dto.enums.validator.EquipmentStatusValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = EquipmentStatusValidator.class)
public @interface ValidEquipmentStatus {
    String message() default "无效的设备运行状态，允许值：normal/fault/maintenance/repair/offline";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
